﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.IoTManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.IoTManagement.MeterDeviceVMs
{
    public partial class MeterDeviceTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._MeterDevice._DeviceCode")]
        public ExcelPropety DeviceCode_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.DeviceCode);
        [Display(Name = "_Model._MeterDevice._DeviceName")]
        public ExcelPropety DeviceName_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.DeviceName);
        [Display(Name = "_Model._MeterDevice._DeviceType")]
        public ExcelPropety DeviceType_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.DeviceType);
        [Display(Name = "_Model._MeterDevice._Location")]
        public ExcelPropety Location_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.Location);
        [Display(Name = "_Model._MeterDevice._Area")]
        public ExcelPropety Area_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.Area);
        [Display(Name = "_Model._MeterDevice._Manufacturer")]
        public ExcelPropety Manufacturer_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.Manufacturer);
        [Display(Name = "_Model._MeterDevice._InstallDate")]
        public ExcelPropety InstallDate_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.InstallDate, true);
        [Display(Name = "_Model._MeterDevice._CommAddress")]
        public ExcelPropety CommAddress_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.CommAddress);
        [Display(Name = "_Model._MeterDevice._CommProtocol")]
        public ExcelPropety CommProtocol_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.CommProtocol);
        [Display(Name = "_Model._MeterDevice._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.Status);
        [Display(Name = "_Model._MeterDevice._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.Remark);
        [Display(Name = "_Model._MeterDevice._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.CreateTime, true);
        [Display(Name = "_Model._MeterDevice._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.UpdateTime, true);
        [Display(Name = "_Model._MeterDevice._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.CreateBy);
        [Display(Name = "_Model._MeterDevice._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.UpdateBy);
        [Display(Name = "_Model._MeterDevice._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.IsValid);
        [Display(Name = "_Model._MeterDevice._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<MeterDevice>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class MeterDeviceImportVM : BaseImportVM<MeterDeviceTemplateVM, MeterDevice>
    {
            //import

    }

}